package ModelLayer;
import java.util.Date;



/**
 * This class creates an objekt of type Loan
 * 
 * @author (group 1(A)) 
 * @version (14-04-2011)
 */
public class Loan
{
    // instance variables - replace the example below with your own
    private int id;
    private int date;
    private int periode;
    private boolean status;
    private Copy copy;


    /**
     * Constructor for objects of class Loan
     * @param id Id of the Loan
     * @param date Date of the Loan
     * @param periode Periode of the Loan
     * @param status Status of the Loan
     * @param serialNumber Serial number of the Copy
     * @param getDate Get the date of the Copy
     * @param getPrice Get the price of the Copy
     */
     public Loan(int id, int date, int periode, boolean status, int serialNumber, int getDate, int getPrice)
    {
       this.id = id;
       this.date = date;
       this.periode = periode;
       this.status = status;
       copy = new Copy(serialNumber,getDate,getPrice);
    }

   /**
     * Set the Loans id
     * @param id Id of the Loan
     */
    public void setId(int id)
    {
        this.id = id;
    }
    
    /**
     * Return the Loans id
     * @return Return the id of the Loan
     */
    public int getId()
    {
        return id;
    }
    
    /**
     * Set the Loans date
     * @param date Date of the Loan
     */
    public void setDate(int date)
    {
        this.date = date;
    }
    
    /**
     * Return the Loans date
     * @return Return the date of the Loan
     */
    public int getDate()
    {
        return date;
    }
    
    /**
     * Set the Loans periode
     * @param periode Periode of the Loan
     */
    public void setPeriode(int periode)
    {
        this.periode = periode;
    }
    
    /**
     * Return the Loans periode
     * @return Return the periode of the Loan
     */
    public int getPeriode()
    {
        return periode;
    }
    
    /**
     * Set the Loans status
     * @param status Status of the Loan
     */
    public void setStatus(boolean status)
    {
        this.status = status;
    }
    
    /**
     * Return the Loans status
     * return Return the status of the Loan
     */
    public boolean getStatus()
    {
        return status;
    }
}
